package com.kgc.service;

import com.github.pagehelper.PageInfo;
import com.kgc.entity.User;

import java.util.Map;

/**
 * @author :qinya
 * @PackageName:com.kgc.service
 * @ClassName: UserService
 * @Description: TODO
 * @date : 2025/5/15,0:28
 */
public interface UserService {
    Map<String, Object> userLogin(String loginName, String password);

    PageInfo<User> selectUserByPage(Map<String, Object> params);

    boolean addUser(User user);

    boolean editUserByManager(User user);

    User selectUserById(int id);

    boolean checkEmail(String email);

    boolean checkLoginName(String loginName);

    boolean deleUser(int id);

    int updateUserPassword(int id, String password);
}
